<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="ordercommon.jsp"%>
<%
    String vac01 = (String)request.getParameter("vac01");
    request.setAttribute("vac01",vac01);
%>

<!DOCTYPE html>
<input id="jysj" type="hidden"
	value='' />
<input id="jy_jdsj" type="hidden"
	value='' />
<input id="jc_sj" type="hidden"
	value='' />
	
<html>
<head>
<meta charset="UTF-8">
<title>云健康--门诊医生系统</title>
<link rel="stylesheet" type="text/css" href="${ctx}/theme/theme_blue/main.css" id="index_two_a" />
<link rel="stylesheet" type="text/css" href="${ctx}/css.base/please_shuaka.css" />
<link rel="stylesheet" type="text/css" href="${ctx}/two/css/outpatient.css" />
<!-- 皮肤切换js -->
<script type="text/javascript" src="${ctx}/js.base/skin_change.js"></script>
<script src="${ctx_num}/js/outpatient.js"></script>
<script src="${ctx_num}/js/app-index.js"></script>
<script src="${ctx_num}/js/adviceOption.js"></script>
<script src="${ctx_num}/js/emr.js"></script>
<!-- mq -->
<script src="${ctx}/lib/avtiveMq/activemq_onehis.js"></script>
<script src="${ctx}/lib/avtiveMq/ajax_Encapsulation.js"></script>
<script src="${ctx}/lib/avtiveMq/amq_jquery_adapter.js"></script>
<script src="${ctx}/lib/avtiveMq/amq.js"></script>
<script src="${ctx}/lib/avtiveMq/credit_card.js"></script>
<script src="${ctx}/lib/avtiveMq/jquery.json-2.2.js"></script>
<script src="${ctx}/lib/avtiveMq/member_card_out.js"></script>
<script src="${ctx}/lib/avtiveMq/print.js"></script>
</head>
<body>
 

<input id="vac01" type="hidden" value="<%=request.getParameter("vac01") %>"/>
	<div id="mid_container">
		<div id="content" style="background: white;">
		   <div style=" position: relative;width:100%; height:100%;">
		   <div class="three-column">
		      <div class="main-header">
		      		<div class="main-header-content">
		      		   <div class="header-content-left">
		      			 
		      			</div>
							<div class="header-content-right">
								<div class="btn-group" onclick="seeMoreInfoEvent();">
									<a class="btn btn-transparent ">
										<span class="more-info-text">更多</span>
										<span class="caret"></span>
									</a>
								</div>
							<!-- 	<button class="btn btn-main" id="shouye_btn">
									<span class="glyphicon glyphicon-log-in"></span>
									诊断信息
								</button>
								<div class="btn-group">
									<button class="btn btn-yellow" id="handle_admission">
										<span>办理入院</span>
									</button>
									<button class="btn btn-yellow dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
										<span class="caret"></span>
									</button>
									<ul class="dropdown-menu dropdown-menu-right">
										
									</ul>
								</div> -->
							</div>
						</div>
		      </div>
			</div>
			
			<div class="main-content">
					<div class="main-header-nav" id="patient_info">
						<ul class="nav nav-underline" role="tablist">
							<li class="active">
								<a href="#advice1" data-toggle="tab">医嘱记录</a>
							</li>
							<li>
								<a href="#Emr1" data-toggle="tab">病历记录</a>
							</li>
							<li>
								<a href="#Jianyan1" data-toggle="tab">检验报告</a>
							</li>
							<li>
								<a href="#Jiancha1" data-toggle="tab">检查报告</a>
							</li>
						</ul>
					</div>
					<div class="tab-content tab_container">
						<!--医嘱记录-->
						<div class="tab-pane active" id="advice1">
							<div class="yizhu_content_table" style="width: 100%;position: relative;">
								<div class="main-content-optionBtn">
									<form class="form-inline pull-left">
										<div class="form-group">
											<select class="form-control" onchange="changeAdcive()" id="bdaSearch">
												<option id="">全部医嘱</option>
												<option id="bda011">西、成药</option>
												<option id="bda018">中草药</option>
												<option id="bda01L">检验</option>
												<option id="bda01E">检查</option>
												<option id="bda01S">手术</option>
												<option id="bda01O">其它</option>
											</select>
										</div>
										<div class="checkbox-group">
											</select>
											<label class="checkbox-inline">
												<input type="checkbox" checked="checked" id="vaf10_1" value="">
												新开
											</label>
											<label class="checkbox-inline">
												<input type="checkbox" checked="checked" id="vaf10_8" value="">
												发送
											</label>
											<label class="checkbox-inline">
												<input type="checkbox" checked="checked" id="vaf10_4" value="">
												作废
											</label>
										</div>
									</form>
									<div class="main-content-btnGroup pull-right">
										<!-- <button class="btn btn-main" id="newpage" name="xk">
											<span class="glyphicon glyphicon-plus"></span>
											新开
										</button> -->
										<button class="btn btn-main" onclick="editAdivce()" name="bj">
											<span class="glyphicon glyphicon-pencil"></span>
											编辑
										</button>
										<button class="btn btn-main" onclick="deleteAdivce()" name="sc">
											<span class="glyphicon glyphicon-trash"></span>
											删除
										</button>
										<button class="btn btn-main" onclick="vby1()" name="zf">
											<span class="glyphicon glyphicon-alert"></span>
											作废
										</button>
										<button class="btn btn-yellow" onclick="sendAdvice()" name="fasong">
											<span class="glyphicon glyphicon-log-in"></span>
											发送
										</button>
										<div class="btn-group">
											<button class="btn btn-blue" onclick="print();" name="dyyzd">
												<span class="glyphicon glyphicon-print"></span>
												<span>打印医嘱单</span>
											</button>
											<button class="btn btn-blue dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" onclick='printCheckedEvent();' name="dyyzd">
												<span class="caret"></span>
											</button>
											<ul class="dropdown-menu dropdown-menu-right">
												<li onclick='print1();'>
													<a href="#">打印预览</a>
												</li>
												<li role="separator" class="divider"></li>
												<li class="print_type" onclick="chosePrintType();">
													<select id="advice_print">
													</select>
												</li>
											</ul>
											<!-- <ul class="dropdown-menu dropdown-menu-right" id="advice_print">
								</ul> -->
										</div>
									</div>
								</div>
								<div class="main-content-table" id="table_list" style="overflow-x: auto;bottom:0">
									<div class="main-table-container tableYz" id="advice_table">
										<!-- <table id="table_list" class="table-responsive table table-hover table-striped table-border">
		
								</table> -->
									</div>
								</div>
								<!-- <div class="main-content-page">
									<div class="page-content" id="page"></div>
								</div> -->
							</div>
							<div class="yizhucontainer" id="patient_operation">
								<div class="main-header-nav">
									<ul class="nav nav-underline" role="tablist">
										<li class="active">
											<a href="#jizhu_jijia" data-toggle="tab">医嘱计价内容</a>
										</li>
										<li>
											<a href="#jizhu_fasong" data-toggle="tab">医嘱发送记录</a>
										</li>
										<li>
											<a href="#shoushu_renyuan" data-toggle="tab">手术人员安排</a>
										</li>
										<li>
											<a href="#chufang_zhenduan" data-toggle="tab">处方诊断</a>
										</li>
										<li>
											<a href="#chufang_xingzhi" data-toggle="tab">处方性质</a>
										</li>
										<li class="moreCont">
											<div class="btn-group" onclick="yizhuOtherInfo();">
												<a class="btn btn-transparent ">
													<span class="more-info-text">展开</span>
													<span class="caret caret-top"></span>
												</a>
											</div>
										</li>
									</ul>
								</div>
								<div class="tab-content " id="yizhujilu_content">
									<!--医嘱计价内容-->
									<div class="tab-pane active" id="jizhu_jijia">
										<div class="main-content-table" style="bottom: 0px;">
											<div class="main-table-container" id="jijia_jq_container">
												<table id="yizhujijiaContent" class="table-change table-responsive table table-hover table-striped table-border"></table>
											</div>
										</div>
									</div>
									<!-- 医嘱发送记录 -->
									<div class="tab-pane" id="jizhu_fasong">
										<div class="main-content-table" style="bottom: 0px;">
											<div class="main-table-container">
												<table class="table-responsive table table-hover table-striped table-border">
													<thead>
														<tr>
															<td>结账状态</td>
															<td>发送时间</td>
															<td>收费项目</td>
															<td>发送次数</td>
															<td>执行科室</td>
															<td>发送人</td>
															<td>执行状态</td>
															<td>单据号</td>
															<td>条形码</td>
														</tr>
													</thead>
													<tbody id="vaf1Fasongjilu_table"></tbody>
												</table>
											</div>
										</div>
									</div>
									<div class="tab-pane" id="shoushu_renyuan">
										<div class="main-content-table" style="bottom: 0px;">
											<div class="main-table-container">
												<table class="table-responsive table table-hover table-striped table-border" id="shoushurenyuananpai_table">
													<thead>
														<tr>
															<td>岗位</td>
															<td>编号</td>
															<td>姓名</td>
														</tr>
													</thead>
												</table>
											</div>
										</div>
									</div>
									<div class="tab-pane" id="chufang_zhenduan">
										<div class="main-content-table" style="bottom: 0px;">
											<div class="main-table-container">
												<table class="table-responsive table table-hover table-striped table-border">
													<thead>
														<tr>
															<td>医师诊断</td>
															<td>诊断结果</td>
														</tr>
													</thead>
													<tbody id="chufangzhenduan_table"></tbody>
												</table>
											</div>
										</div>
									</div>
									<div class="tab-pane" id="chufang_xingzhi">
										<div class="main-content-table" style="bottom: 0px;">
											<div class="main-table-container">
												<table class="table-responsive table table-hover table-striped table-border" id="chufangshuxing_table">
													<thead>
														<tr>
															<td>处方性质</td>
															<td>处方分类</td>
															<td>医疗类别</td>
														</tr>
													</thead>
													<tbody></tbody>
												</table>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
						<div class="tab-pane" id="Emr1">
							<div class="main-header-search">
								<form class="form-inline">
									<button type="button" class="btn btn-main" data-toggle="modal" onclick="addEmr();" name="xinzeng">
										<span class="glyphicon glyphicon-plus"></span>
										<span>新增</span>
									</button>
									<button type="button" class="btn btn-main" data-toggle="modal" onclick="getFileInfoById();" name="xiugai">
										<span class="glyphicon glyphicon-pencil"></span>
										<span>修改</span>
									</button>
									<button type="button" class="btn btn-main data-toggle=" modal" onclick="deleteApplyFile();" name="shanchu_emr">
										<span class="glyphicon glyphicon-trash"></span>
										<span>删除</span>
									</button>
								</form>
							</div>
							<div class="tablelist">
								<div class="tableBl">
									<table class="table table-bordered table-responsive" id="emr_app_file_list"></table>
									<!--表格结束-->
								</div>
							</div>
							<!--表格下方空白区-->
							<div id="blank-content" style="height: 80%;">
								<iframe src="" frameborder='0' allowtransparency='true' height='100%' width='100%'></iframe>
								<div id="file_info_case_history" style="text-align: center; margin: 250px"></div>
								病历文件
							</div>
						</div>
						<div class="tab-pane " id="Jianyan1">
						<!-- Nav tabs -->
							<ul class="nav nav-tabs" role="tablist">
								<li role="presentation" class="active">
									<a href="#jybg_jdms" aria-controls="home" role="tab" data-toggle="tab">经典模式</a>
								</li>
								<li role="presentation">
									<a href="#jybg_jyms" aria-controls="profile" role="tab" data-toggle="tab">简约模式</a>
								</li>
							</ul>
							<!-- Tab panes -->
							<div class="tab-content tab_container">
								<!-- 经典模式 -->
								<div role="tabpanel" class="tab-pane active" id="jybg_jdms" style="width: 100%; height: 100%">
									<div  style="height: 100%; width: 100%;">
										<div class="main-header-search">
										<div class="form-inline">
											<span>分组规则一：</span>
											<select class="form-control jingdian_fenzu" id="jd_fenzu1">
											</select>
											<span>分组规则二：</span>
											<select class="form-control jingdian_fenzu" id="jd_fenzu2">
											</select>
											<span>分组规则三：</span>
											<select class="form-control jingdian_fenzu" id="jd_fenzu3">
											</select>
											<select class="form-control" id="jiangyan_baogaodan">
												<!-- <option>检验报告单</option>
										<option>2</option> -->
											</select>
											<label class="radio-inline">
												<input type="radio" name="inlineRadioOptions" id="" value="">
												图形
											</label>
											<label class="radio-inline">
												<input type="radio" name="inlineRadioOptions" id="" value="" checked>
												常规
											</label>
											<button class="btn btn-main" id="jy_jingdian_search" onclick="jyJingdianRecombination()">
												<span class="glyphicon glyphicon-search"></span>
												查询
											</button>
											<div class="btn-group" style="float: right;">
												<button class="btn btn-main">
													<span class="glyphicon glyphicon-print"></span>
													打印
												</button>
												<button class="btn btn-main dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
													<span class="caret"></span>
												</button>
												<ul class="dropdown-menu dropdown-menu-right">
												</ul>
											</div>
											<!-- <div style="float: right;">
										<div class="inline input-group">
											<button class="btn btn-main form-control">
											<span class="glyphicon glyphicon-print"></span> 打印</button>
											<button class="btn btn-main input-group-addon">
											<span class="glyphicon glyphicon-triangle-bottom"></span>
											</button>
										</div>
									</div> -->
										</div>
										</div>
										<div class="jianyanbaogao row" style="height: 100%;jianyanbaogao row">
											<div class="col-md-6" style="height: 100%">
												<div class="picShow" id="jingdian_left_table">
													<!-- <table class="tablePic">
												<thead>
													<tr>
														<td>-</td>
														<td>基本条码</td>
														<td>执行科室</td>
														<td>采样人</td>
														<td>病人类别</td>
														<td>生理体征</td>
														<td>诊断</td>
													</tr>
												</thead>
											</table> -->
												</div>
											</div>
											<div class="col-md-6" style="height: 100%; padding-right: 0px; width: 50%;">
												<div class="picShow" id="jy_jd_tuxCg"></div>
											</div>
										</div>
									</div>
								</div>
								<!-- 	简约模式 -->
								<div role="tabpanel" class="tab-pane" id="jybg_jyms" style="width: 100%; height: 100%;position:relative;">
									<div class="main-header-search">
										<div class="form-inline">
											<span>分组规则一：</span>
											<select class="form-control jianyan_fenzu" id="jianyan_fenzu1">
											</select>
											<span>分组规则二：</span>
											<select class="form-control jianyan_fenzu" id="jianyan_fenzu2">
											</select>
											<span>分组规则三：</span>
											<select class="form-control jianyan_fenzu" id="jianyan_fenzu3">
											</select>
											<button class="btn btn-main" id="jy_recombination" onclick="jyRecombination()">
												<span class="glyphicon glyphicon-search"></span>
												查询
											</button>
											<div class="btn-group" style="float: right;">
												<button class="btn btn-main">
													<span class="glyphicon glyphicon-print"></span>
													打印
												</button>
												<button class="btn btn-main dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
													<span class="caret"></span>
												</button>
												<ul class="dropdown-menu dropdown-menu-right">
												</ul>
											</div>
											<!-- <div style="float: right;">
											<div class="inline input-group">
												<button class="btnIn btn form-control">
												<span class="glyphicon glyphicon-print"></span> 打印</button>
												<button class="btnIn btn input-group-addon">
													<span class="glyphicon glyphicon-triangle-bottom"></span>
												</button>
											</div>
										</div> -->
										</div>
										<!-- <div class="jianyanbaogao row" style="height: 100%; width: 100%">
											<div class="col-md-12" style="height: 100%; padding-right: 0px; width: 100%">
												<div class="picShow" id="inspect_table"></div>
											</div>
										</div> -->
									</div>
									<div class="main-content-table" >
											<div class="main-table-container" id="inspect_table">
												<!-- <table id="grid-data-patient" class="table-responsive table table-hover table-striped table-border">
												</table> -->
											</div>
										</div>
								</div>
							</div>
						</div>
						<div class="tab-pane" id="Jiancha1">
							<div class="space">
								<div class="form-inline search_grouop">
									<span>分组规则一：</span>
									<select class="form-control jiancha_fenzu" id="jiancha_fenzu1">
									</select>
									<span>分组规则二：</span>
									<select class="form-control jiancha_fenzu" id="jiancha_fenzu2">
									</select>
									<span>分组规则三：</span>
									<select class="form-control jiancha_fenzu" id="jiancha_fenzu3">
									</select>
									<button class="btn btn-main" id="" onclick="jcRecombination()">
										<span class="glyphicon glyphicon-search"></span>
										查询
									</button>
									<div class="btn-group" style="float: right;">
										<button class="btn btn-main">
											<span class="glyphicon glyphicon-print"></span>
											打印
										</button>
										<button class="btn btn-main dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
											<span class="caret"></span>
										</button>
										<ul class="dropdown-menu dropdown-menu-right">
										</ul>
									</div>
									<!-- <div style="float: right;">
								<div class="inline input-group">
									<button class="btnIn btn form-control"><span class="glyphicon glyphicon-print"></span> 打印</button>
									<button class="btnIn btn input-group-addon">
										<span class="glyphicon glyphicon-triangle-bottom"></span>
									</button>
								</div>
							</div> -->
								</div>
							</div>
							<div class="row" style="height: 100%">
								<div class="col-md-6" style="height: 100%">
									<div class="picShow" id="jiancha_baogao">
										<!-- <table class="tablePic">
									<thead>
										<tr>
											<td>-</td>
											<td>审核时间</td>
											<td>影像提示</td>
											<td>影像号</td>
											<td>姓名</td>
											<td>保存人</td>
											<td>阳性提示</td>
										</tr>
									</thead>
								</table> -->
									</div>
								</div>
								<div class="col-md-6" style="height: 100%">
									<div class="picShow">
										<span>图像展示</span>
									</div>
								</div>
							</div>
						</div>
					</div>
				
				</div>
			
		</div>
	</div>
		<!-- 表格设置div -->
		<div id="tableHtml">
		<div class="tableSet" style="height: 300px; width: 400px; overflow: auto;display:none">
			<div style="width: 100%; height: 90%; overflow: auto">
				<table class="table table-striped table-hover">
					<thead>
						<tr>
							<td></td>
							<td></td>
							<td>列名</td>
							<td>标题</td>
							<td>宽度</td>
						</tr>
					</thead>
					<tbody id="set_table_tbody">


					</tbody>

				</table>
			</div>
			<button class="btn btn-main" onclick="saveSetEvent()">
				<span class="glyphicon glyphicon-plus"></span> save
			</button>
		</div>
		</div>
		<!--尾部内容-->
	</div>

	<!--遮盖层-->
	<div id="cover" class="hidden"></div>

<!-- 打印 -->
<div id="appletDiv"></div>

<!-- mq -->
	<%--会员刷卡--%>
	<%--会员刷卡结束--%>
	<%--会员发卡开始--%>
	<div id="new_swing_card">
		<div class="modal-body">
			<div class="please-swing-card" id="plase_faKa">
				<span>请刷卡</span>
				<!-- <input type="text" id="creditcard" name="creditcard" style="width: 320px !important;"> -->
			</div>
			<div id="error_mess"></div>
		</div>
		<div class="modal-foot">
			<button type="button" class="btn btn-green" onclick="promptFaCard()" id="faka_propnum">输入卡号</button>
			<button type="button" class="btn btn-green" >确定</button>
			<button type="button" class="btn btn-white">取消</button>
		</div>
	</div>
	<%--会员发卡结束--%>
	<%-- 交易窗口开始 --%>
	<div class="layer_container" id="member_consumption">
		<div class="body_container" style="bottom: 150px;padding:20px 20px 0 35px;">
			<form class="form-horizontal">
				<div class="row">
					<div class="col-md-6">
						<label class=" control-label">会员卡号</label>
					</div>
					<div class="col-md-6">
						<label class=" control-label">会员积分</label>
					</div>
				</div>
				<div class="row">
					<div class="col-md-6">
						<div class="form-group">
							<input  class="form-control" id="kahao" readonly="readonly" style="width: 150px"  />
						</div>
					</div>
					<div class="col-md-6">
						<div class="form-group">
							<input  class="form-control" id="jifen" readonly="readonly" style="width: 150px"  />
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-6">
						<label class=" control-label">会员预扣金额</label>
					</div>
					<div class="col-md-6">
						<label class=" control-label">余额</label>
					</div>
				</div>
				<div class="row">
					<div class="col-md-6">
						<div class="form-group">
							<input  class="form-control" id="yukou_e" style="width: 150px" readonly="readonly"  />
						</div>
					</div>
					<div class="col-md-6">
						<div class="form-group">
							<input  class="form-control" id="yu_e" readonly="readonly" style="width: 150px" />
						</div>
					</div>
				</div>
			</form>
		</div>
		<!-- <div class="footer_left_container">
			<div style="height: 100%; position: relative">
				<span>
					<label>请输入密码</label>
					<input type="password" class="form-input" id="vbu09" name="vbu09" />
				</span>
			</div>
		</div> -->
		<div class="footer_container" style="bottom:80px">
		   <div class="row">
		      <div class="col-md-6">
		      	<span>
					<label>请输入密码</label>
				</span>
		      </div>
		      <div class="col-md-6">
		      
		      </div>
		   </div>
		   <div class="row">
		      <div class="col-md-6" style="height:40px;top:7px">
					<input type="password" class="form-input" id="vbu09" name="vbu09" />
		      </div>
		      <div class="col-md-6" >
					<button type="button" class="btn btn-green" id="makesure" onclick="chareCardUpdate()">确认交易</button>
					<button type="button" class="btn btn-white" onclick="removeAction_jiaoyi();">取消</button>
		      
		      </div>
		   </div>
		</div>
	</div>
	<%-- 交易窗口结束 --%>
	<div id="msgDiv" hidden="true"></div>
</body>

</html>
